/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.server.database;

/**
 *
 * @author Hung
 */
public class ItemInfo {

    public int numberItem = 16;
    private String[] itemsName = new String[numberItem];
    private int[] itemsPrice = new int[numberItem];
    private int[] itemsLuckPercent = new int[numberItem];
    private int[] itemTimeLimit = new int[numberItem];

    public String getItemName(int id) {
        return itemsName[id];
    }

    public int getItemPrice(int id) {
        return itemsPrice[id];
    }

    public int getItemLuckPercent(int id) {
        return itemsLuckPercent[id];
    }

    public void setItemName(int id, String name) {
        itemsName[id] = name;
    }

    public void setItemPrice(int id, int price) {
        itemsPrice[id] = price;
    }

    public void setItemLuckPercent(int id, int percent) {
        itemsLuckPercent[id] = percent;
    }

    public int getItemTimeLimit(int id) {
        return itemTimeLimit[id];
    }

    public void setItemTimeLimit(int id, int time) {
        itemTimeLimit[id] = time;
    }

    public void setNumberItem(int number) {
        numberItem = number;
    }
}
